//
//  UIColor+Extension.swift
//  WeiBoShiBing
//
//  Created by Bingo on 15/11/2.
//  Copyright © 2015年 Bingo. All rights reserved.
//

import UIKit

//随机颜色扩展
extension UIColor{
    
    class func randomColor() -> UIColor {
        return UIColor(red: randomValue(), green: randomValue(), blue: randomValue(), alpha: 1)
    }
    private class func randomValue() -> CGFloat{
        return CGFloat(arc4random_uniform(256)) / 255
    }
}